package Demo1;

/**
 * @Author: Lenovo
 * @Date: 2024/5/17 13:56
 * @description:
 */
public final class Dog extends Animal{
    static {
        System.out.println("static()::Dog....");
    }
    {
        System.out.println("Dog实例代码块...");
    }
    public Dog(String name, int age) {
        super(name, age);
        System.out.println("Dog构造代码块");
    }
    public void bark(){
        System.out.println(this.name+"正在汪汪叫....");
    }
}
